//
//  GetEncryptedDeviceId.m
//  Staff
//
//  Created by caiyao on 1/13/15.
//
//

#import "GetEncryptedDeviceId.h"
#import <Cordova/UIDevice+Extensions.h>
#import "HashUtility.h"

@implementation GetEncryptedDeviceId

- (void)excute {
    
    NSString *myDeviceID = [[UIDevice currentDevice] uniqueAppInstanceIdentifier];
    NSString *hashedUDID = [HashUtility createSHA512Hash:myDeviceID];
    DebugLog(@"myDeviceID =%@ ",myDeviceID);
    // excute callbackJS
    [self excuteCallBackJSWithParameters:hashedUDID];
}

@end
